ugly fix for failing tests. without the string template, KotlinFilePathReferenceContributor injects a file reference into the string literal, and an unrelated intention (AddAnnotationIntention) tries to resolve it. resolving the reference caches the default contexts in FIleReferenceSet, which caches the order entries of a module in an OrderRootsCache. this creates VirtualFilePointers which are for some reason not disposed properly.

This commit is contained in:
Dmitry Jemerov
2016-07-23 21:18:00 +02:00
parent 8aaf28e240
commit a979c7e1d7
4 changed files with 4 additions and 4 deletions
@@ -2,5 +2,5 @@
fun foo(n: Int) {}
fun test() {
foo("a<caret>bc")
foo("a<caret>bc${1}")
}
@@ -2,7 +2,7 @@
fun foo(n: Int) {}
fun test() {
foo("abc")
foo("abc${1}")
}
fun foo(n: String) {