Skip to content

Commit

Permalink
Explain the reason for support parsing legacy restricted types
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Oct 16, 2024
1 parent 222bff5 commit 841027f
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 841027f

Please sign in to comment.