Skip to content

Commit

Permalink
Merge pull request #3614 from onflow/supun/cleanup
Browse files Browse the repository at this point in the history
Explain the reason for support parsing legacy restricted types
  • Loading branch information
SupunS authored Oct 16, 2024
2 parents 222bff5 + 841027f commit 8d4dea7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/parser/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ func defineIntersectionOrDictionaryType() {
},
)

// While restricted types have been removed from Cadence, during the first few months of the
// migration period, leave a special error in place to help developers
// TODO: remove this after Stable Cadence migration period is finished
// Though the restricted types were removed starting with Cadence v1.0,
// still try to parse restricted types if present, and report a proper error.
// This is to give meaningful error messages for anyone trying pre-1.0 codes.
setTypeMetaLeftDenotation(
lexer.TokenBraceOpen,
func(p *parser, rightBindingPower int, left ast.Type) (result ast.Type, err error, done bool) {
Expand Down

0 comments on commit 8d4dea7

Please sign in to comment.