Opened 17 years ago
Last modified 17 years ago
#201 closed バグ
ジェネリッククラスにおいて、実型パラメータに固定型が指定されたジェネリッククラスを継承すると、基底クラスの型パラメータが不正に置き換わってしまう — at Initial Version
Reported by: | dai | Owned by: | dai |
---|---|---|---|
Priority: | 高-critical | Milestone: | AB5 CP6 |
Component: | Compiler | Version: | |
Keywords: | Cc: |
Description
例えば、下記のようなコードに問題が生じるていた。
#console Class Foo<T> Public Function GetTypeName( t As T ) As String Return t.GetType().Name End Function End Class Class Bar<T> Inherits Foo<String> End Class Dim bar = New Bar System.Console.WriteLine( bar.GetTypeName( New String() ) ) System.Console.ReadLine()
Note:
See TracTickets
for help on using tickets.