Skip to content

Commit

Permalink
Merge branch 'issue/1928_precondition_failure_resolve_types'
Browse files Browse the repository at this point in the history
* issue/1928_precondition_failure_resolve_types:
  fix #1928, pre-condition in `resolveTypes` is not correct anymore
  • Loading branch information
maxteufel committed Sep 7, 2023
2 parents d044275 + 53e8826 commit 2d814cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dev/flang/ast/Feature.java
Original file line number Diff line number Diff line change
Expand Up @@ -1941,8 +1941,7 @@ public Expr resolveTypes(Resolution res, AbstractFeature outer)
(this.outer() == outer,
Errors.any() ||
(_impl._kind != Impl.Kind.FieldDef &&
_impl._kind != Impl.Kind.FieldActual &&
_impl._kind != Impl.Kind.RoutineDef)
_impl._kind != Impl.Kind.FieldActual)
|| _returnType == NoType.INSTANCE);

if (_impl._initialValue != null)
Expand Down

0 comments on commit 2d814cf

Please sign in to comment.