mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
Fix UL classes test for inline classes support
This commit is contained in:
15
compiler/testData/asJava/ultraLightClasses/inlineClasses.java
vendored
Normal file
15
compiler/testData/asJava/ultraLightClasses/inlineClasses.java
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
public final class UInt /* UInt*/ {
|
||||
}
|
||||
|
||||
public enum Foo /* Foo*/ {
|
||||
;
|
||||
|
||||
public final int getX();
|
||||
|
||||
}
|
||||
|
||||
public final class InlinedDelegate /* InlinedDelegate*/<T> {
|
||||
@null()
|
||||
public final T getNode();
|
||||
|
||||
}
|
||||
@@ -1,14 +1,11 @@
|
||||
/** should load cls */
|
||||
inline class UInt(private val value: Int) { }
|
||||
|
||||
/** should load cls */
|
||||
inline enum class Foo(val x: Int) {
|
||||
A(0), B(1);
|
||||
|
||||
fun example() { }
|
||||
}
|
||||
|
||||
/** should load cls */
|
||||
inline class InlinedDelegate<T>(var node: T) {
|
||||
operator fun setValue(thisRef: A, property: KProperty<*>, value: T) {
|
||||
if (node !== value) {
|
||||
|
||||
Reference in New Issue
Block a user