diff --git a/compiler/frontend/src/org/jetbrains/jet/checkers/CheckerTestUtil.java b/compiler/frontend/src/org/jetbrains/jet/checkers/CheckerTestUtil.java index 0a3a55ae8ad..7edaaa81f69 100644 --- a/compiler/frontend/src/org/jetbrains/jet/checkers/CheckerTestUtil.java +++ b/compiler/frontend/src/org/jetbrains/jet/checkers/CheckerTestUtil.java @@ -85,8 +85,8 @@ public class CheckerTestUtil { final List debugAnnotations = Lists.newArrayList(); DebugInfoUtil.markDebugAnnotations(root, bindingContext, new DebugInfoUtil.DebugInfoReporter() { @Override - public void reportErrorElement(@NotNull JetReferenceExpression expression) { - newDiagnostic(expression, DebugInfoDiagnosticFactory.ERROR_ELEMENT); + public void reportElementWithErrorType(@NotNull JetReferenceExpression expression) { + newDiagnostic(expression, DebugInfoDiagnosticFactory.ELEMENT_WITH_ERROR_TYPE); } @Override @@ -379,7 +379,7 @@ public class CheckerTestUtil { } public static class DebugInfoDiagnosticFactory extends AbstractDiagnosticFactory { - public static final DebugInfoDiagnosticFactory ERROR_ELEMENT = new DebugInfoDiagnosticFactory("ERROR_ELEMENT"); + public static final DebugInfoDiagnosticFactory ELEMENT_WITH_ERROR_TYPE = new DebugInfoDiagnosticFactory("ELEMENT_WITH_ERROR_TYPE"); public static final DebugInfoDiagnosticFactory UNRESOLVED_WITH_TARGET = new DebugInfoDiagnosticFactory("UNRESOLVED_WITH_TARGET"); public static final DebugInfoDiagnosticFactory MISSING_UNRESOLVED = new DebugInfoDiagnosticFactory("MISSING_UNRESOLVED"); diff --git a/compiler/frontend/src/org/jetbrains/jet/checkers/DebugInfoUtil.java b/compiler/frontend/src/org/jetbrains/jet/checkers/DebugInfoUtil.java index 83668551a69..0d62832e484 100644 --- a/compiler/frontend/src/org/jetbrains/jet/checkers/DebugInfoUtil.java +++ b/compiler/frontend/src/org/jetbrains/jet/checkers/DebugInfoUtil.java @@ -17,8 +17,6 @@ package org.jetbrains.jet.checkers; import com.google.common.collect.Maps; -import com.google.common.collect.Sets; -import com.intellij.openapi.application.ApplicationManager; import com.intellij.psi.PsiElement; import com.intellij.psi.tree.IElementType; import com.intellij.psi.tree.TokenSet; @@ -37,7 +35,6 @@ import org.jetbrains.jet.lexer.JetTokens; import java.util.Collection; import java.util.Map; -import java.util.Set; import static org.jetbrains.jet.lang.resolve.BindingContext.*; import static org.jetbrains.jet.lexer.JetTokens.*; @@ -50,7 +47,7 @@ public class DebugInfoUtil { public interface DebugInfoReporter { - void reportErrorElement(@NotNull JetReferenceExpression expression); + void reportElementWithErrorType(@NotNull JetReferenceExpression expression); void reportMissingUnresolved(@NotNull JetReferenceExpression expression); @@ -122,13 +119,14 @@ public class DebugInfoUtil { boolean resolved = target != null; boolean markedWithError = markedWithErrorElements.containsKey(expression); JetType expressionType = bindingContext.get(EXPRESSION_TYPE, expression); + AbstractDiagnosticFactory factory = markedWithErrorElements.get(expression); if (declarationDescriptor != null && - !ApplicationManager.getApplication().isUnitTestMode() && (ErrorUtils.isError(declarationDescriptor) || ErrorUtils.containsErrorType(expressionType))) { - debugInfoReporter.reportErrorElement(expression); + if (factory != Errors.EXPRESSION_EXPECTED_NAMESPACE_FOUND) { + debugInfoReporter.reportElementWithErrorType(expression); + } } if (resolved && markedWithError) { - AbstractDiagnosticFactory factory = markedWithErrorElements.get(expression); if (factory instanceof UnresolvedReferenceDiagnosticFactory) { debugInfoReporter.reportUnresolvedWithTarget(expression, target); } diff --git a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt index 25af3f99721..6d9b64596a2 100644 --- a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt +++ b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt @@ -3,7 +3,7 @@ fun text() { "direct:a" on {it.body == ""} to "mock:a" "direct:a" on {it -> it.body == ""} to "mock:a" bar {1} - bar {it + 1} + bar {it + 1} bar {it, it1 -> it} bar1 {1} @@ -12,7 +12,7 @@ fun text() { bar2 {} bar2 {1} bar2 {it} - bar2 {it -> it} + bar2 {it -> it} } fun bar(f : (Int, Int) -> Int) {} @@ -29,4 +29,4 @@ fun String.on(predicate : (s : URI) -> Boolean) : URI { class URI(val body : Any) { fun to(dest : String) {} -} +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt index 149d875bb6e..acf006ac7ac 100644 --- a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt +++ b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt @@ -1,5 +1,5 @@ fun test() { - if (x > 0) { + if (x > 0) { } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/DeferredTypes.kt b/compiler/testData/diagnostics/tests/DeferredTypes.kt index 8125ddbc904..01524cefbfd 100644 --- a/compiler/testData/diagnostics/tests/DeferredTypes.kt +++ b/compiler/testData/diagnostics/tests/DeferredTypes.kt @@ -1,3 +1,3 @@ trait T { - val a = Foo.bar() -} + val a = Foo.bar() +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt index dc9cdecaa18..b0b6b230000 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt @@ -23,13 +23,13 @@ fun fooT2() : (t : T) -> T { fun main(args : Array) { args.foo()() args.foo1()() - a.foo1()() - a.foo1()(a) + a.foo1()() + a.foo1()(a) args.foo1()(1) args.foo1()("1") - a.foo1()("1") - a.foo1()(a) + a.foo1()("1") + a.foo1()(a) foo2()({}) foo2(){} diff --git a/compiler/testData/diagnostics/tests/NamedArgumentsAndDefaultValues.kt b/compiler/testData/diagnostics/tests/NamedArgumentsAndDefaultValues.kt index 553da3390c2..a6a4a3753af 100644 --- a/compiler/testData/diagnostics/tests/NamedArgumentsAndDefaultValues.kt +++ b/compiler/testData/diagnostics/tests/NamedArgumentsAndDefaultValues.kt @@ -19,5 +19,7 @@ fun test() { bar(1, 1, "") bar(1, 1, "") bar(1, z = "") - bar(1, zz = "", zz.foo) + bar(1, zz = "", + zz.foo + ) } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/NamespaceAsExpression.kt b/compiler/testData/diagnostics/tests/NamespaceAsExpression.kt index d471424c0a9..f26e6530f3d 100644 --- a/compiler/testData/diagnostics/tests/NamespaceAsExpression.kt +++ b/compiler/testData/diagnostics/tests/NamespaceAsExpression.kt @@ -4,5 +4,5 @@ package root.a // FILE: b.kt package root -val x = a -val y2 = package +val x = a +val y2 = package \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/NamespaceInExpressionPosition.kt b/compiler/testData/diagnostics/tests/NamespaceInExpressionPosition.kt index 5fb807a08fe..3db9bca3991 100644 --- a/compiler/testData/diagnostics/tests/NamespaceInExpressionPosition.kt +++ b/compiler/testData/diagnostics/tests/NamespaceInExpressionPosition.kt @@ -1,12 +1,11 @@ - package foo class X {} -val s = java +val s = java val ss = System val sss = X -val xs = java.lang +val xs = java.lang val xss = java.lang.System val xsss = foo.X -val xssss = foo +val xssss = foo \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/Unresolved.kt b/compiler/testData/diagnostics/tests/Unresolved.kt index 9514b112c74..ada0049f31b 100644 --- a/compiler/testData/diagnostics/tests/Unresolved.kt +++ b/compiler/testData/diagnostics/tests/Unresolved.kt @@ -23,10 +23,10 @@ fun testUnresolved() { } for (j in collection) { - var i: Int = j + var i: Int = j i += 1 - foo1(j) + foo1(j) } } -fun foo1(i: Int) {} +fun foo1(i: Int) {} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt2330.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt2330.kt index 3f2373486d5..03ffa4d6171 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt2330.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/kt2330.kt @@ -47,7 +47,7 @@ class R { fun test() { val o = object { fun run() { - p.x = 43 + p.x = 43 } } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt index f1ba7a307b6..09eb45323e6 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/MultiDeclarationErrors.kt @@ -14,7 +14,7 @@ fun test(mc1: MyClass, mc2: MyClass2) { val (c) = mc2 //a,b,c are error types - a : Boolean - b : Boolean - c : Boolean -} \ No newline at end of file + use(a, b, c) +} + +fun use(vararg a: Any?) = a \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/infos/Autocasts.kt b/compiler/testData/diagnostics/tests/infos/Autocasts.kt index 053ee48f6f4..2c9a490a006 100644 --- a/compiler/testData/diagnostics/tests/infos/Autocasts.kt +++ b/compiler/testData/diagnostics/tests/infos/Autocasts.kt @@ -88,17 +88,17 @@ fun f13(a : A?) { } else { a?.foo() - c.bar() + c.bar() } a?.foo() if (!(a is B)) { a?.foo() - c.bar() + c.bar() } else { a.foo() - c.bar() + c.bar() } a?.foo() @@ -108,7 +108,7 @@ fun f13(a : A?) { } else { a?.foo() - c.bar() + c.bar() } if (!(a is B) || !(a is C)) { @@ -195,7 +195,7 @@ fun mergeAutocasts(a: Any?) { val i: Int = a.compareTo("") } if (a is String && a.compareTo("") == 0) {} - if (a is String || a.compareTo("") == 0) {} + if (a is String || a.compareTo("") == 0) {} } //mutability @@ -215,4 +215,4 @@ fun foo(var a: Any): Int { return a } return 1 -} +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/objects/ObjectsLocal.kt b/compiler/testData/diagnostics/tests/objects/ObjectsLocal.kt index 5c28facdbc0..605ca0ee97d 100644 --- a/compiler/testData/diagnostics/tests/objects/ObjectsLocal.kt +++ b/compiler/testData/diagnostics/tests/objects/ObjectsLocal.kt @@ -20,4 +20,4 @@ fun test() { B.foo() } -val bb = B.foo() +val bb = B.foo() \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/objects/ObjectsNested.kt b/compiler/testData/diagnostics/tests/objects/ObjectsNested.kt index 4a8961b6360..36e785837f6 100644 --- a/compiler/testData/diagnostics/tests/objects/ObjectsNested.kt +++ b/compiler/testData/diagnostics/tests/objects/ObjectsNested.kt @@ -26,5 +26,4 @@ val a = A val b = B val c = A.B val d = A.B.A -val e = B.A.B - +val e = B.A.B \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/Jet81.kt b/compiler/testData/diagnostics/tests/regressions/Jet81.kt index e356fbeff5c..95a427a5766 100644 --- a/compiler/testData/diagnostics/tests/regressions/Jet81.kt +++ b/compiler/testData/diagnostics/tests/regressions/Jet81.kt @@ -4,7 +4,7 @@ val y = object { val a = y; } -val z = y.a; +val z = y.a; object A { val x = A @@ -12,11 +12,11 @@ object A { val a = object { { - b + 1 + b + 1 } - val x = b + val x = b val y = 1 } -val b = a.x -val c = a.y +val b = a.x +val c = a.y \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/UnavaliableQualifiedThis.kt b/compiler/testData/diagnostics/tests/regressions/UnavaliableQualifiedThis.kt index 06f60005347..0f80fe99ccf 100644 --- a/compiler/testData/diagnostics/tests/regressions/UnavaliableQualifiedThis.kt +++ b/compiler/testData/diagnostics/tests/regressions/UnavaliableQualifiedThis.kt @@ -4,10 +4,10 @@ trait Iterator { fun map(transform: (element: T) -> R) : Iterator = object : Iterator { - override fun next() : R = transform(this@map.next()) + override fun next() : R = transform(this@map.next()) override val hasNext : Boolean // There's no 'this' associated with the map() function, only this of the Iterator class - get() = this@map.hasNext + get() = this@map.hasNext } -} +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/kt1639-JFrame.kt b/compiler/testData/diagnostics/tests/regressions/kt1639-JFrame.kt index e2430bb729a..c5db0772cbe 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt1639-JFrame.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt1639-JFrame.kt @@ -4,6 +4,6 @@ import javax.swing.JFrame class KFrame() : JFrame() { { - val x = this.accessibleContext // make sure field is visible + val x = this.rootPaneCheckingEnabled // make sure field is visible } } diff --git a/compiler/testData/diagnostics/tests/scopes/Imports.kt b/compiler/testData/diagnostics/tests/scopes/Imports.kt index 6d2919ccaf3..14b10059db3 100644 --- a/compiler/testData/diagnostics/tests/scopes/Imports.kt +++ b/compiler/testData/diagnostics/tests/scopes/Imports.kt @@ -27,7 +27,7 @@ fun test(arg: B) { constant.fff(constant.dValue) - f.f() + f.f() } // FILE:b.kt @@ -79,7 +79,7 @@ object C { } fun foo() { - if (i == 3) f() + if (i == 3) f() } //FILE:d.kt diff --git a/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.kt b/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.kt index a315e6b805d..b1e105bcbfa 100644 --- a/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.kt +++ b/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.kt @@ -4,7 +4,7 @@ val List.length = size() val List.length1 : Int get() = size() -val String.bd = this + "!" +val String.bd = this + "!" val String.bd1 : String get() = this + "!" diff --git a/compiler/testData/diagnostics/tests/scopes/kt250.617.10.kt b/compiler/testData/diagnostics/tests/scopes/kt250.617.10.kt index 1aa4a886e71..c9cdb9b8b2c 100644 --- a/compiler/testData/diagnostics/tests/scopes/kt250.617.10.kt +++ b/compiler/testData/diagnostics/tests/scopes/kt250.617.10.kt @@ -31,7 +31,7 @@ open class BodyTag(name : String) : TagWithText(name) { class Body() : BodyTag(name) { // Must be an error! } -class Body1() : BodyTag(this.name) { // Must be an error! +class Body1() : BodyTag(this.name) { // Must be an error! } //more tests diff --git a/compiler/testData/diagnostics/tests/scopes/kt900-2.kt b/compiler/testData/diagnostics/tests/scopes/kt900-2.kt index 7bf46e7d022..9267abd625e 100644 --- a/compiler/testData/diagnostics/tests/scopes/kt900-2.kt +++ b/compiler/testData/diagnostics/tests/scopes/kt900-2.kt @@ -13,8 +13,8 @@ val y: T = Y fun f() { bar() - R.bar() - B.foo() + R.bar() + B.foo() } object M { diff --git a/compiler/testData/diagnostics/tests/scopes/kt900.kt b/compiler/testData/diagnostics/tests/scopes/kt900.kt index 8ddfdb2f2f2..924df791112 100644 --- a/compiler/testData/diagnostics/tests/scopes/kt900.kt +++ b/compiler/testData/diagnostics/tests/scopes/kt900.kt @@ -5,11 +5,11 @@ package a fun foo() { val b : B = B() //only B() is unresolved, but in ": B" and "B.foo()" B should also be unresolved - B.foo() + B.foo() - P.foo() + P.foo() - M.bar() + M.bar() } class A() { @@ -45,7 +45,7 @@ fun foo() { P.foo() - M.bar() + M.bar() } class A() { diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/Super.kt b/compiler/testData/diagnostics/tests/thisAndSuper/Super.kt index ca82c13316c..531c75fb2c3 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/Super.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/Super.kt @@ -12,29 +12,29 @@ class A() : C(), T { fun test() { super super - super.foo() + super.foo() super.foo() super.bar() super@A.foo() super@A.bar() - super<E>.bar() - super<E>@A.bar() - super<Int>.foo() - super<>.foo() - super<() -> Unit>.foo() - super<Unit>.foo() - super@B.foo() - super@B.bar() + super<E>.bar() + super<E>@A.bar() + super<Int>.foo() + super<>.foo() + super<() -> Unit>.foo() + super<Unit>.foo() + super@B.foo() + super@B.bar() } class B : T { fun test() { super.foo(); - super<C>.bar() + super<C>.bar() super@A.bar() super@A.foo() super@B.foo() - super<C>@B.foo() + super<C>@B.foo() super.foo() super super @@ -50,8 +50,8 @@ class CG : G { fun test() { super.foo() // OK super>.foo() // Warning - super<G<E>>.foo() // Error - super<G>.foo() // Error + super<G<E>>.foo() // Error + super<G>.foo() // Error } } diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/superInExtensionFunction.kt b/compiler/testData/diagnostics/tests/thisAndSuper/superInExtensionFunction.kt index 19bc692e760..6e900cdb290 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/superInExtensionFunction.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/superInExtensionFunction.kt @@ -1,4 +1,4 @@ fun String.f() { - super@f.compareTo("") - super.compareTo("") + super@f.compareTo("") + super.compareTo("") } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/superInToplevelFunction.kt b/compiler/testData/diagnostics/tests/thisAndSuper/superInToplevelFunction.kt index e494e1d88ab..0d2f96f9f51 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/superInToplevelFunction.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/superInToplevelFunction.kt @@ -1,5 +1,5 @@ fun foo() { super - super.foo() - super.foo() + super.foo() + super.foo() } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/thisInFunctionLiterals.kt b/compiler/testData/diagnostics/tests/thisAndSuper/thisInFunctionLiterals.kt index 5cedba746fb..0aa0380a515 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/thisInFunctionLiterals.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/thisInFunctionLiterals.kt @@ -10,7 +10,7 @@ class A(val a:Int) { this@A : A } val b = @a{Double.() -> this@a : Double + this@xx : Char} - val c = @a{() -> this@a + this@xx : Char} + val c = @a{() -> this@a + this@xx : Char} return (@a{Double.() -> this@a : Double + this@xx : Char}) } } diff --git a/idea/src/org/jetbrains/jet/plugin/highlighter/DebugInfoAnnotator.java b/idea/src/org/jetbrains/jet/plugin/highlighter/DebugInfoAnnotator.java index 30eefaa8290..5c9144b9705 100644 --- a/idea/src/org/jetbrains/jet/plugin/highlighter/DebugInfoAnnotator.java +++ b/idea/src/org/jetbrains/jet/plugin/highlighter/DebugInfoAnnotator.java @@ -55,7 +55,7 @@ public class DebugInfoAnnotator implements Annotator { final BindingContext bindingContext = WholeProjectAnalyzerFacade.analyzeProjectWithCacheOnAFile(file).getBindingContext(); DebugInfoUtil.markDebugAnnotations(file, bindingContext, new DebugInfoUtil.DebugInfoReporter() { @Override - public void reportErrorElement(@NotNull JetReferenceExpression expression) { + public void reportElementWithErrorType(@NotNull JetReferenceExpression expression) { holder.createErrorAnnotation(expression, "[DEBUG] Resolved to error element") .setTextAttributes(JetHighlightingColors.RESOLVED_TO_ERROR); } diff --git a/idea/testData/checker/LocalObjects.kt b/idea/testData/checker/LocalObjects.kt index f75cf687c96..ebce487b825 100644 --- a/idea/testData/checker/LocalObjects.kt +++ b/idea/testData/checker/LocalObjects.kt @@ -18,4 +18,4 @@ B.foo() } - val bb = B.foo() + val bb = B.foo() diff --git a/idea/testData/checker/NestedObjects.kt b/idea/testData/checker/NestedObjects.kt index 838365bc5d3..588c5f33e76 100644 --- a/idea/testData/checker/NestedObjects.kt +++ b/idea/testData/checker/NestedObjects.kt @@ -25,4 +25,4 @@ package nestedObjects val b = B val c = A.B val d = A.B.A - val e = B.A.B + val e = B.A.B diff --git a/idea/testData/checker/QualifiedThisInClosures.kt b/idea/testData/checker/QualifiedThisInClosures.kt index 1c9d4d15b5e..8419b66f281 100644 --- a/idea/testData/checker/QualifiedThisInClosures.kt +++ b/idea/testData/checker/QualifiedThisInClosures.kt @@ -9,7 +9,7 @@ this : Char val a = {Double.() -> this : Double + this@xx : Char} val b = @a{Double.() -> this@a : Double + this@xx : Char} - val c = @a{() -> this@a + this@xx : Char} + val c = @a{() -> this@a + this@xx : Char} return (@a{Double.() -> this@a : Double + this@xx : Char}) } } diff --git a/idea/testData/checker/RecursiveTypeInference.kt b/idea/testData/checker/RecursiveTypeInference.kt index f3763ce3f94..006b2ad306b 100644 --- a/idea/testData/checker/RecursiveTypeInference.kt +++ b/idea/testData/checker/RecursiveTypeInference.kt @@ -1,7 +1,7 @@ //package a { val afoo = abar() - fun abar() = afoo + fun abar() = afoo //} //package b { diff --git a/idea/testData/checker/Unresolved.kt b/idea/testData/checker/Unresolved.kt index fa2b655f6f4..855add548c3 100644 --- a/idea/testData/checker/Unresolved.kt +++ b/idea/testData/checker/Unresolved.kt @@ -24,9 +24,9 @@ fun testUnresolved() { } for (j in collection) { - var i: Int = j + var i: Int = j i += 1 - foo1(j) + foo1(j) } } diff --git a/idea/testData/checker/infos/Autocasts.kt b/idea/testData/checker/infos/Autocasts.kt index dde367eab2a..13989701350 100644 --- a/idea/testData/checker/infos/Autocasts.kt +++ b/idea/testData/checker/infos/Autocasts.kt @@ -85,7 +85,7 @@ fun f13(a : A?) { } else { a?.foo() - c.bar() + c.bar() } a?.foo() @@ -191,7 +191,7 @@ fun mergeAutocasts(a: Any?) { val i: Int = a.compareTo("") } if (a is String && a.compareTo("") == 0) {} - if (a is String || a.compareTo("") == 0) {} + if (a is String || a.compareTo("") == 0) {} } //mutability diff --git a/idea/testData/checker/regression/Jet81.kt b/idea/testData/checker/regression/Jet81.kt index e5a58af2474..a1b4f1a5fd8 100644 --- a/idea/testData/checker/regression/Jet81.kt +++ b/idea/testData/checker/regression/Jet81.kt @@ -4,7 +4,7 @@ val y = object { val a = y } -val z = y.a; +val z = y.a; object A { val x = A @@ -12,11 +12,11 @@ object A { val a = object { { - b + 1 + b + 1 } - val x = b + val x = b val y = 1 } -val b = a.x +val b = a.x val c = a.y