[
https://issues.apache.org/jira/browse/GROOVY-12066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18086829#comment-18086829
]
ASF GitHub Bot commented on GROOVY-12066:
-----------------------------------------
testlens-app[bot] commented on PR #2594:
URL: https://github.com/apache/groovy/pull/2594#issuecomment-4644959676
## ✅ All tests passed ✅
🏷️ Commit: cc89667162b63cf0f09d3a86e7f0c104d14759cb
▶️ Tests: 100865 executed
⚪️ Checks: 30/30 completed
---
_Learn more about TestLens at [testlens.app](https://testlens.app)._
> @Invariant on a static nested class without an explicit constructor fails
> compilation with "BUG! exception in 'instruction selection' ... statement is
> null
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-12066
> URL: https://issues.apache.org/jira/browse/GROOVY-12066
> Project: Groovy
> Issue Type: Bug
> Components: groovy-contracts
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
>
> {code:groovy}
> import groovy.contracts.Invariant
> class Outer {
> @Invariant({ value >= 0 })
> static class Inner { int value = 1 }
> }
> new Outer.Inner()
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)