@@ -11,20 +11,20 @@ sealed abstract class Type[T <: AnyKind] {
1111/** Some basic type tags, currently incomplete */
1212object Type {
1313
14- implicit class TypeOps [ T ]( tpe : Type [ T ]) {
14+ implicit object TypeOps {
1515 /** Show a source code like representation of this type */
16- def show ( implicit toolbox : Toolbox ) : String = toolbox .show(tpe.asInstanceOf [Type [Any ]])
16+ def ( tpe : Type [ T ]) show[ T ] given Toolbox : String = the[ Toolbox ] .show(tpe.asInstanceOf [Type [Any ]])
1717 }
1818
19- implicit def UnitTag : Type [Unit ] = new TaggedType [Unit ]
20- implicit def BooleanTag : Type [Boolean ] = new TaggedType [Boolean ]
21- implicit def ByteTag : Type [Byte ] = new TaggedType [Byte ]
22- implicit def CharTag : Type [Char ] = new TaggedType [Char ]
23- implicit def ShortTag : Type [Short ] = new TaggedType [Short ]
24- implicit def IntTag : Type [Int ] = new TaggedType [Int ]
25- implicit def LongTag : Type [Long ] = new TaggedType [Long ]
26- implicit def FloatTag : Type [Float ] = new TaggedType [Float ]
27- implicit def DoubleTag : Type [Double ] = new TaggedType [Double ]
19+ implied UnitTag for Type [Unit ] = new TaggedType [Unit ]
20+ implied BooleanTag for Type [Boolean ] = new TaggedType [Boolean ]
21+ implied ByteTag for Type [Byte ] = new TaggedType [Byte ]
22+ implied CharTag for Type [Char ] = new TaggedType [Char ]
23+ implied ShortTag for Type [Short ] = new TaggedType [Short ]
24+ implied IntTag for Type [Int ] = new TaggedType [Int ]
25+ implied LongTag for Type [Long ] = new TaggedType [Long ]
26+ implied FloatTag for Type [Float ] = new TaggedType [Float ]
27+ implied DoubleTag for Type [Double ] = new TaggedType [Double ]
2828}
2929
3030/** All implementations of Type[T].
0 commit comments