Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Apr 6, 2022
1 parent 15f970d commit 0a9da2a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/groovy/transform/stc/GenericsSTCTest.groovy
Expand Up @@ -4398,6 +4398,20 @@ class GenericsSTCTest extends StaticTypeCheckingTestCase {
}
}

// GROOVY-9968
void testSelfReferentialTypeParameter4() {
assertScript '''
abstract class A<B extends A<?>> implements Iterable<B> {
}
void m(A iterable) {
iterable?.each {
m(it)
}
}
m(null)
'''
}

// GROOVY-7804
void testParameterlessClosureToGenericSAMTypeArgumentCoercion() {
assertScript '''
Expand Down

0 comments on commit 0a9da2a

Please sign in to comment.