Implement codegen for bound class reference expressions
- Inline the usage of ExpressionCodegen#generateClassLiteralReference into ClosureCodegen, simplify - Support DoubleColonLHS.Expression in generateClassLiteralReference - Substantially simplify KClass.java intrinsic by reusing generateClassLiteralReference #KT-13075 Fixed #KT-12995 In Progress
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fun box(): String {
|
||||
val x: CharSequence = ""
|
||||
val klass = x::class
|
||||
return if (klass == String::class) "OK" else "Fail: $klass"
|
||||
}
|
||||
Reference in New Issue
Block a user