[IR] update testdata: better support for IrConstructorCall
This commit is contained in:
committed by
teamcityserver
parent
197f5ca885
commit
2a19dc32f2
@@ -69,7 +69,7 @@ fun resolveClashesIfAny(container: ComponentContainer, clashResolvers: List<Plat
|
||||
true -> tmp1_elvis_lhs
|
||||
}
|
||||
}
|
||||
val substituteDescriptor: ClashResolutionDescriptor<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out Any?>>>>>> = TODO("IrConstructorCall")
|
||||
val substituteDescriptor: ClashResolutionDescriptor<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out Any?>>>>>> = ClashResolutionDescriptor<PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out PlatformSpecificExtension<out Any?>>>>>>(container = container, resolver = resolver, clashedComponents = clashedComponents.toList<ComponentDescriptor>())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ fun box(): String {
|
||||
get
|
||||
|
||||
fun foo(): String {
|
||||
return TODO("IrConstructorCall").bar()
|
||||
return <this>.Some(s = "O").bar()
|
||||
}
|
||||
|
||||
local inner class Some : Base {
|
||||
@@ -53,7 +53,7 @@ fun box(): String {
|
||||
}
|
||||
|
||||
|
||||
TODO("IrConstructorCall")
|
||||
<no name provided>()
|
||||
}
|
||||
return obj.foo()
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ data class Some<T : Any?> {
|
||||
}
|
||||
|
||||
fun copy(value: T = #value): Some<T> {
|
||||
return TODO("IrConstructorCall")
|
||||
return Some<T>(value = value)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
|
||||
@@ -59,7 +59,7 @@ data class DataClass : Derived, Delegate {
|
||||
}
|
||||
|
||||
fun copy(delegate: Delegate = #delegate): DataClass {
|
||||
return TODO("IrConstructorCall")
|
||||
return DataClass(delegate = delegate)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
|
||||
@@ -11,7 +11,7 @@ class V8Array {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val array: V8Array = TODO("IrConstructorCall")
|
||||
val array: V8Array = V8Array()
|
||||
val list: List<String> = toList(array = array) as List<String>
|
||||
return list.get(index = 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user