Sign in
third-party-mirror
/
typetools
/
checker-framework
/
refs/heads/main
/
.
/
framework
/
tests
/
aliasing
/
ThrowTest.java
blob: 8dad69e615f3f4d2853025488d17127ccc1b7198 [
file
] [
log
] [
blame
]
import
org
.
checkerframework
.
common
.
aliasing
.
qual
.
Unique
;
public
class
ThrowTest
{
void
foo
()
throws
Exception
{
@Unique
Exception
e
=
new
Exception
();
// :: error: (unique.leaked)
throw
e
;
}
void
bar
()
throws
Exception
{
throw
new
Exception
();
}
}