Transform Throwable members to properties
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9088bf67c7
commit
17c906658d
+1
-1
@@ -36,7 +36,7 @@ fun test(<!UNUSED_PARAMETER!>l<!> : <!PLATFORM_CLASS_MAPPED_TO_KOTLIN!>java.util
|
||||
// ...
|
||||
}
|
||||
catch(e: Exception) {
|
||||
System.out.println(e.getMessage())
|
||||
System.out.println(e.message)
|
||||
}
|
||||
|
||||
PrintStream("sdf")
|
||||
|
||||
@@ -60,6 +60,6 @@ fun main(args: Array<String>) {
|
||||
System.out.println("You won!");
|
||||
}
|
||||
catch(e: Throwable) {
|
||||
System.out.println(e.getMessage())
|
||||
System.out.println(e.message)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@ public fun </*0*/ T : kotlin.Any> T.getJavaClass(): java.lang.Class<T>
|
||||
|
||||
public final class IdUnavailableException : java.lang.Exception {
|
||||
public constructor IdUnavailableException()
|
||||
public final override /*1*/ /*fake_override*/ val cause: kotlin.Throwable?
|
||||
public final override /*1*/ /*fake_override*/ val message: kotlin.String?
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final override /*1*/ /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user