Do not report errors on fake elements in call checkers

#KT-12875 Fixed
This commit is contained in:
Alexander Udalov
2016-06-29 19:52:46 +03:00
parent 95291cdc18
commit 8357f3021e
10 changed files with 28 additions and 55 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ fun test() {
<!OPERATOR_MODIFIER_REQUIRED!>!<!>a
!c
<!OPERATOR_MODIFIER_REQUIRED!>a()<!>
<!OPERATOR_MODIFIER_REQUIRED!>a<!>()
c()
<!OPERATOR_MODIFIER_REQUIRED!>Example()()<!>
@@ -17,8 +17,8 @@ class PropertyHolder {
@Deprecated("text")
var name = "String"
val valDelegate <!DEPRECATION!>by<!> Delegate()
var varDelegate <!DEPRECATION, DEPRECATION!>by<!> Delegate()
val valDelegate by <!DEPRECATION!>Delegate()<!>
var varDelegate by <!DEPRECATION, DEPRECATION!>Delegate()<!>
public val test1: String = ""
@Deprecated("val-getter") get
@@ -13,6 +13,6 @@ operator fun <T, U, V, W> @ExtensionFunctionType Function3<T, U, V, W>.component
operator fun <T, U, V, W> @ExtensionFunctionType Function3<T, U, V, W>.component2() = 2
inline fun <T, U, V, W> inlineFunWithInvoke(s: (p: T, l: U) -> V, ext: T.(p: U, l: V) -> W) {
val (d1, e1) = <!USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE!>s<!>
val (d2, e2) = <!USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE!>ext<!>
val (d1, e1) = <!USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE!>s<!>
val (d2, e2) = <!USAGE_IS_NOT_INLINABLE, USAGE_IS_NOT_INLINABLE!>ext<!>
}
@@ -5,7 +5,7 @@ class D : C {
{
val s = ""
<!INSTANCE_ACCESS_BEFORE_SUPER_CALL!>s<!>()
""() // TODO: see KT-12875
<!INSTANCE_ACCESS_BEFORE_SUPER_CALL!>""()<!>
42
}())