Skip to content

Commit

Permalink
initializer has no access modifier, but access to constructor is public
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Sep 22, 2023
1 parent 8bf8c38 commit 1e04b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/sema/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ func newDeclarationMember(
if access == ast.AccessNotSpecified {
switch declaration.DeclarationKind() {
case common.DeclarationKindInitializer:
break
access = ast.AccessAll

default:
panic(fmt.Errorf(
Expand Down
2 changes: 1 addition & 1 deletion runtime/sema/gen/testdata/contract/test.golden.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e04b7a

Please sign in to comment.