mirror of https://github.com/sbt/sbt.git
Merge pull request #1168 from retronym/ticket/1107
Fix NPE in task macro accessing q"{...}".symbol.pos
This commit is contained in:
commit
51d3bb4adf
|
|
@ -167,7 +167,7 @@ object Instance
|
||||||
def addType(tpe: Type, qual: Tree, selection: Tree): Tree =
|
def addType(tpe: Type, qual: Tree, selection: Tree): Tree =
|
||||||
{
|
{
|
||||||
qual.foreach(checkQual)
|
qual.foreach(checkQual)
|
||||||
val vd = util.freshValDef(tpe, qual.symbol.pos, functionSym)
|
val vd = util.freshValDef(tpe, qual.pos, functionSym)
|
||||||
inputs ::= new Input(tpe, qual, vd)
|
inputs ::= new Input(tpe, qual, vd)
|
||||||
util.refVal(selection, vd)
|
util.refVal(selection, vd)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue