Skip to content

Commit

Permalink
Add inner class test
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi committed Nov 28, 2024
1 parent d87bbed commit 112d650
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ class Nullability<T, U: Any>(val t: T, val u: U, var nullableU: U?) {
inner class InnerClass<V> {
fun f(t: T, u: U, v: V) {}
}
}
}
12 changes: 12 additions & 0 deletions pkgs/jnigen/test/kotlin_test/runtime_test_registrant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,18 @@ void registerTests(String groupName, TestRunnerCallback test) {
null,
);
});
test('Inner class', () {
using((arena) {
final obj = testObject(arena);
final innerObj =
Nullability_InnerClass<JString?, JString, JInteger>(obj,
V: JInteger.type);
expect(
innerObj.f,
isA<void Function(JString?, JString, JInteger)>(),
);
});
});
});
});
});
Expand Down

0 comments on commit 112d650

Please sign in to comment.