Skip to content

Commit 4babffe

Browse files
committed
test of Void without @nullable
1 parent 1374e89 commit 4babffe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nullaway/src/test/java/com/uber/nullaway/jspecify/GenericDiamondTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ void testNegative() {
3636
void testPositive() {
3737
// BUG: Diagnostic contains: incompatible types: Foo<@Nullable String> cannot be converted to Foo<String>
3838
Bar<String> b = new Bar<>(Foo.makeNullableStr());
39+
// BUG: Diagnostic contains: incompatible types: Foo<@Nullable Void> cannot be converted to Foo<Void>
40+
Bar<Void> b2 = new Bar<>(Foo.make());
3941
}
4042
}
4143
""")

0 commit comments

Comments
 (0)