fix #866; generic static params

This commit is contained in:
Zahary Karadjov
2014-03-09 23:38:17 +02:00
parent 3dcf735482
commit 45a345e93d
5 changed files with 35 additions and 20 deletions

View File

@@ -4062,8 +4062,8 @@ Static params can also appear in the signatures of generic types:
AffineTransform2D[T] = Matrix[3, 3, T]
AffineTransform3D[T] = Matrix[4, 4, T]
AffineTransform3D[float] # OK
AffineTransform2D[string] # Error, `string` is not a `Number`
var m1: AffineTransform3D[float] # OK
var m2: AffineTransform2D[string] # Error, `string` is not a `Number`
typedesc