diff --git a/pkgs/jnigen/test/kotlin_test/kotlin/src/main/kotlin/com/github/dart_lang/jnigen/Nullability.kt b/pkgs/jnigen/test/kotlin_test/kotlin/src/main/kotlin/com/github/dart_lang/jnigen/Nullability.kt index 73a56dfa0..243ddab51 100644 --- a/pkgs/jnigen/test/kotlin_test/kotlin/src/main/kotlin/com/github/dart_lang/jnigen/Nullability.kt +++ b/pkgs/jnigen/test/kotlin_test/kotlin/src/main/kotlin/com/github/dart_lang/jnigen/Nullability.kt @@ -76,4 +76,4 @@ class Nullability(val t: T, val u: U, var nullableU: U?) { inner class InnerClass { fun f(t: T, u: U, v: V) {} } -} \ No newline at end of file +} diff --git a/pkgs/jnigen/test/kotlin_test/runtime_test_registrant.dart b/pkgs/jnigen/test/kotlin_test/runtime_test_registrant.dart index d6f61e47b..7d7ac1ff9 100644 --- a/pkgs/jnigen/test/kotlin_test/runtime_test_registrant.dart +++ b/pkgs/jnigen/test/kotlin_test/runtime_test_registrant.dart @@ -226,6 +226,18 @@ void registerTests(String groupName, TestRunnerCallback test) { null, ); }); + test('Inner class', () { + using((arena) { + final obj = testObject(arena); + final innerObj = + Nullability_InnerClass(obj, + V: JInteger.type); + expect( + innerObj.f, + isA(), + ); + }); + }); }); }); });