mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Support [throws] annotation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class JavaClass {
|
||||
void testMethod() {
|
||||
Test test = new Test();
|
||||
test.none();
|
||||
|
||||
try {
|
||||
test.one();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
|
||||
try {
|
||||
test.two();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
catch (E2 e) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user