ReplaceWith annotation resolver: use module from resolution facade to build imports scope

#KT-15873 Fixed

Using module from original element may lead to exceptions as it could be
<built-ins module> (after deprecation of `mod` operator)
This commit is contained in:
Mikhail Zarechenskiy
2017-01-26 21:52:42 +03:00
parent e05f2eaff6
commit 0c6a860a22
4 changed files with 21 additions and 8 deletions
@@ -0,0 +1,5 @@
// "Replace with 'rem(other)'" "true"
fun test() {
1.<caret>mod(3)
}
@@ -0,0 +1,5 @@
// "Replace with 'rem(other)'" "true"
fun test() {
1.rem(3)
}