mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Support [throws] annotation
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class JavaClass {
|
||||
void testMethod() {
|
||||
new None();
|
||||
|
||||
try {
|
||||
new One();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
|
||||
try {
|
||||
new OneWithParam(1);
|
||||
}
|
||||
catch (E1 e) {}
|
||||
|
||||
try {
|
||||
new Two();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
catch (E2 e) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user