1 2 3 4 5
import collection.generic.SeqFactory class A { def f(x: Boolean) = if (x) (null: SeqFactory[List]) else (null: SeqFactory[Set]) }