

def test_compile_diamond_operator_java6_fails(self):
    pants_run = pants_run._test_compile('1.6', 'Diamond', dedent('\n      public class Diamond<T> {\n        public static void main(String[] args) {\n          Diamond<String> diamond = new Diamond<>();\n        }\n      }\n    '))
    self.assert_failure(pants_run)

dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/jvm_platform_integration_mixin.py JvmPlatformIntegrationMixin.test_compile_diamond_operator_java6_fails/VarMisuse@12/22 `self`->`pants_run`