@@ -11,20 +11,20 @@ sealed abstract class Type[T <: AnyKind] {
11
11
/** Some basic type tags, currently incomplete */
12
12
object Type {
13
13
14
- implicit class TypeOps [ T ]( tpe : Type [ T ]) {
14
+ implicit object TypeOps {
15
15
/** 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 ]])
17
17
}
18
18
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 ]
28
28
}
29
29
30
30
/** All implementations of Type[T].
0 commit comments