Use header->impl mapping in HeaderImplDeclarationChecker.areCompatibleTypes
Construct a special TypeCheckingContext that is aware of the magic behind the "impl typealias" that implements a "header class" #KT-16986 Fixed
This commit is contained in:
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
header fun stringBuilder(sb: StringBuilder)
|
||||
|
||||
header fun kotlinVersion(kv: KotlinVersion)
|
||||
|
||||
header fun regex(r: Regex)
|
||||
|
||||
header fun pair(p: Pair<String, List<Double>>)
|
||||
|
||||
header fun <A, B> genericPair(p: Pair<A, B>)
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
impl fun stringBuilder(sb: StringBuilder) {}
|
||||
|
||||
impl fun kotlinVersion(kv: KotlinVersion) {}
|
||||
|
||||
impl fun regex(r: Regex) {}
|
||||
|
||||
impl fun pair(p: Pair<String, List<Double>>) {}
|
||||
|
||||
impl fun <A, B> genericPair(p: Pair<A, B>) {}
|
||||
Reference in New Issue
Block a user