mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Data class copy method invocation gives errors in IDE when some optional parameters specified (KT-5975)
#KT-5975 Fixed GitOrigin-RevId: b71ea51e56de0170122294fde964532f397259de
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ee2a31bd06
commit
9c016ba500
+6
@@ -38,6 +38,12 @@ public class MultiFileHighlightingTestGenerated extends AbstractMultiFileHighlig
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/multiFileHighlighting"), Pattern.compile("^(.+)\\.kt$"), false);
|
||||
}
|
||||
|
||||
@TestMetadata("copyResolveBeforeParams.kt")
|
||||
public void testCopyResolveBeforeParams() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/multiFileHighlighting/copyResolveBeforeParams.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("delegatesReference.kt")
|
||||
public void testDelegatesReference() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/multiFileHighlighting/delegatesReference.kt");
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package copytest
|
||||
|
||||
import dataclass.Settings
|
||||
|
||||
fun foo(s: Settings) {
|
||||
s.copy(1, 32)
|
||||
s.copy(1)
|
||||
}
|
||||
|
||||
// KT-5975 data class copy method invocation gives errors in IDE when some optional parameters specified
|
||||
/* Resolution of copy was called before parameters resolve */
|
||||
@@ -0,0 +1,3 @@
|
||||
package dataclass
|
||||
|
||||
data class Settings(b: Int = 1, val a: Int)
|
||||
Reference in New Issue
Block a user