K2 Scripting: turn on implicit body resolve for scripts
This commit is contained in:
committed by
Space Team
parent
1a735b0842
commit
00211a5fc9
-1
@@ -535,7 +535,6 @@ open class FirDeclarationsResolveTransformer(
|
||||
}
|
||||
|
||||
override fun transformScript(script: FirScript, data: ResolutionMode): FirScript {
|
||||
if (implicitTypeOnly) return script
|
||||
dataFlowAnalyzer.enterScript(script)
|
||||
val result = context.withScopesForScript(script, components) {
|
||||
transformDeclarationContent(script, data) as FirScript
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
val (a1, a2) = A()
|
||||
val (b1: Int, b2: Int) = A()
|
||||
val (b1: Int, b2: Int) = <!COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH!>A()<!>
|
||||
val (c1) = <!COMPONENT_FUNCTION_MISSING, UNRESOLVED_REFERENCE!>unresolved<!>
|
||||
|
||||
<!WRONG_MODIFIER_TARGET!>private<!> val (d1) = A()
|
||||
|
||||
Reference in New Issue
Block a user