twitter / rsc

Experimental Scala compiler focused on compilation speed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Predef is not correctly imported

wiwa opened this issue · comments

import scala.Predef.String

object C {
  def foo: Map[Int, Int] = Map.empty
}

Due to the changes from this commit, Predef is not correctly imported, resulting in

error: unbound: type Map
  def foo: Map[Int, Int] = Map.empty
           ^
one error found

Actually, this error is possibly replicated by scalac surprisingly, i.e.

error: not found: type Map
  def foo: Map[Int, Int] = Map.empty
           ^

Removing the import relieves the issue