mirror of https://github.com/sbt/sbt.git
Merge pull request #1113 from retronym/ticket/si-8263
Scala 2.11 compatibility
This commit is contained in:
commit
62072ebcca
|
|
@ -24,7 +24,7 @@ object KListBuilder extends TupleBuilder
|
||||||
val kconsTC: Type = kconsTpe.typeConstructor
|
val kconsTC: Type = kconsTpe.typeConstructor
|
||||||
|
|
||||||
/** This is the L in the type function [L[x]] ... */
|
/** This is the L in the type function [L[x]] ... */
|
||||||
val tcVariable: TypeSymbol = newTCVariable(NoSymbol)
|
val tcVariable: TypeSymbol = newTCVariable(util.initialOwner)
|
||||||
|
|
||||||
/** Instantiates KCons[h, t <: KList[L], L], where L is the type constructor variable */
|
/** Instantiates KCons[h, t <: KList[L], L], where L is the type constructor variable */
|
||||||
def kconsType(h: Type, t: Type): Type =
|
def kconsType(h: Type, t: Type): Type =
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ object TupleNBuilder extends TupleBuilder
|
||||||
|
|
||||||
val ctx: c.type = c
|
val ctx: c.type = c
|
||||||
val representationC: PolyType = {
|
val representationC: PolyType = {
|
||||||
val tcVariable: Symbol = newTCVariable(NoSymbol)
|
val tcVariable: Symbol = newTCVariable(util.initialOwner)
|
||||||
val tupleTypeArgs = inputs.map(in => typeRef(NoPrefix, tcVariable, in.tpe :: Nil).asInstanceOf[global.Type])
|
val tupleTypeArgs = inputs.map(in => typeRef(NoPrefix, tcVariable, in.tpe :: Nil).asInstanceOf[global.Type])
|
||||||
val tuple = global.definitions.tupleType(tupleTypeArgs)
|
val tuple = global.definitions.tupleType(tupleTypeArgs)
|
||||||
PolyType(tcVariable :: Nil, tuple.asInstanceOf[Type] )
|
PolyType(tcVariable :: Nil, tuple.asInstanceOf[Type] )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue