Skip to content

Commit

Permalink
Fix 'yield outside of switch expression'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Sinuskin authored and Alexander Sinuskin committed Jan 25, 2024
1 parent 7c78f66 commit d1651ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions value-fixture/src/nonimmutables/YieldField.java
@@ -0,0 +1,9 @@
package nonimmutables;

import org.immutables.value.Value;

@Value.Immutable
public interface YieldField {

int getYield();
}
Expand Up @@ -2408,7 +2408,7 @@ if ([v.name]Value != null) {
[v.names.init]([v.name]Value);
}
[else]
[v.names.init](instance.[v.names.get]());
this.[v.names.init](instance.[v.names.get]());
[/if]
[/template]

Expand Down

0 comments on commit d1651ba

Please sign in to comment.