Opened 17 years ago
Closed 17 years ago
#175 closed バグ(ケアレスミス) (fixed)
ジェネリック型Listを関数の戻り値にすると基本型の場合にエラーとなる
| Reported by: | NoWest | Owned by: | dai |
|---|---|---|---|
| Priority: | 高-critical | Milestone: | AB5 CP6 |
| Component: | Compiler | Version: | |
| Keywords: | Cc: |
Description
下記のテストにおいてTest1のケースでエラーとなる
' ↓ ここからプログラムが実行されます
Imports System
Imports System.Collections.Generic
/* Test1 */
Function Test1() As List<Byte>
Dim bArray As List<Byte>
bArray.Add(1)
Return bArray
End Function
Dim a = Test1()
Console.WriteLine( a[0] )
/* Test2 */
Function Test2() As List<String>
Dim strArray As List<String>
strArray.Add("test")
Return strArray
End Function
Dim b = Test2()
Console.WriteLine( b[0] )
Sleep(-1)
Change History (3)
comment:1 by , 17 years ago
| Type: | タスク → バグ(ケアレスミス) |
|---|
comment:2 by , 17 years ago
| Status: | new → assigned |
|---|
comment:3 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

[539]にて修正。