Sign in
third-party-mirror
/
typetools
/
checker-framework
/
refs/heads/main
/
.
/
checker
/
tests
/
nullness
/
GenericCast.java
blob: 739703fe433c5206757d56502b597b0e426b47f2 [
file
] [
log
] [
blame
]
// @skip-test Fails, but commented out to avoid breaking the build
public
class
GenericCast
<
T
>
{
@SuppressWarnings
(
"unchecked"
)
T tObject
=
(
T
)
new
Object
();
T field1
=
tObject
;
T field2
;
GenericCast
()
{
field2
=
tObject
;
}
}