FIR: forbid java.lang.String(String) constructor in JvmMappedScope
#KT-49135 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
09bc729b0e
commit
f4067f05a2
+7
@@ -0,0 +1,7 @@
|
||||
FILE: typeAliasAmbiguity.kt
|
||||
public final typealias ServiceId = R|kotlin/String|
|
||||
public final fun ServiceId(serviceId: R|kotlin/String|): R|ServiceId| {
|
||||
^ServiceId R|<local>/serviceId|
|
||||
}
|
||||
public final val GaugeSpecTmsIntegrationServiceId: R|ServiceId| = R|/ServiceId|(String(Gauge))
|
||||
public get(): R|ServiceId|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
typealias ServiceId = String
|
||||
fun ServiceId(serviceId: String): ServiceId = serviceId
|
||||
// FE 1.0 resolves this to function
|
||||
val GaugeSpecTmsIntegrationServiceId = ServiceId("Gauge")
|
||||
Reference in New Issue
Block a user