diff --git a/plugins/groovy/testdata/highlighting/PassingCollectionSubtractionIntoGenericMethod.groovy b/plugins/groovy/testdata/highlighting/PassingCollectionSubtractionIntoGenericMethod.groovy new file mode 100644 index 000000000000..d13089d52775 --- /dev/null +++ b/plugins/groovy/testdata/highlighting/PassingCollectionSubtractionIntoGenericMethod.groovy @@ -0,0 +1,10 @@ +def foo(Set zzz) { + def xxx = ['a'] as Set + while (xxx) { + def sub = xxx - xxx.iterator().next() + xxx = bar(sub, zzz) + doo() + } +} + +def Set bar(Set xxx, Set yyy) { xxx }