blackdrag commented on code in PR #2839:
URL: https://github.com/apache/groovy/pull/2839#discussion_r3884966297


##########
src/test/groovy/groovy/transform/stc/FieldsAndPropertiesSTCTest.groovy:
##########
@@ -1321,6 +1321,30 @@ class FieldsAndPropertiesSTCTest extends 
StaticTypeCheckingTestCase {
         '''
     }
 
+    // GROOVY-12305
+    @Test
+    void testMapPropertyAccess19() {
+        assertScript '''
+            def test(Map foo) {
+                foo.a instanceof Map ? foo.a.b : foo.a

Review Comment:
   I think the test is ok, but does it works with generics too?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to