JS: fix support of throwable constructors without message and/or cause parameters

This commit is contained in:
Alexey Andreev
2016-12-29 15:52:47 +03:00
parent 6f4d8decc7
commit 115f6ced87
11 changed files with 99 additions and 8 deletions
@@ -0,0 +1,10 @@
public final class CustomException {
public method <init>(): void
public method <init>(@org.jetbrains.annotations.Nullable p0: java.lang.String): void
public method <init>(@org.jetbrains.annotations.Nullable p0: java.lang.String, @org.jetbrains.annotations.Nullable p1: java.lang.Throwable): void
public method <init>(@org.jetbrains.annotations.Nullable p0: java.lang.Throwable): void
}
public final class ExceptionCauseKt {
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
}
@@ -0,0 +1,10 @@
public final class MyThrowable {
private final @org.jetbrains.annotations.NotNull field x: java.lang.String
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String, @org.jetbrains.annotations.Nullable p2: java.lang.Throwable): void
public synthetic method <init>(p0: java.lang.String, p1: java.lang.String, p2: java.lang.Throwable, p3: int, p4: kotlin.jvm.internal.DefaultConstructorMarker): void
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String
}
public final class ThrowableImplWithSecondaryConstructorKt {
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
}