[IDEA-TESTS] Specify language version in feature-dependent tests
Some quickfixes are relying on diagnostics, that won't be reported with new language features enabled. `MixedNamedArgumentsInTheirOwnPosition` `AllowBreakAndContinueInsideWhen`
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = 42'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
operator fun String.invoke(a: Int, b: Int) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = 42'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
operator fun String.invoke(a: Int, b: Int) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: Int, b: String) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: Int, b: String) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
class A(a: Int, b: String) {}
|
||||
|
||||
fun f() {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
class A(a: Int, b: String) {}
|
||||
|
||||
fun f() {
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument..." "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: Int, b: String = "b", c: String = "c") {}
|
||||
|
||||
fun g() {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument..." "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: Int, b: String = "b", c: String = "c") {}
|
||||
|
||||
fun g() {
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = B()'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
open class A {}
|
||||
open class B : A() {}
|
||||
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = B()'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
open class A {}
|
||||
open class B : A() {}
|
||||
|
||||
|
||||
idea/testData/quickfix/checkArguments/addNameToArgument/mixedNamedAndPositionalArgumentsUsedNamed.kt
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: String, b: String) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: String, b: String) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: String, x: Int, b: String) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "Add name to argument: 'b = "FOO"'" "true"
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
fun f(a: String, x: Int, b: String) {}
|
||||
|
||||
fun g() {
|
||||
|
||||
Reference in New Issue
Block a user