Opened 16 years ago

Closed 16 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 NoWest, 16 years ago

Type: タスクバグ(ケアレスミス)

comment:2 by dai, 16 years ago

Status: newassigned

comment:3 by dai, 16 years ago

Resolution: fixed
Status: assignedclosed

[539]にて修正。

Note: See TracTickets for help on using tickets.