Opened 11 years ago

Closed 11 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 Changed 11 years ago by NoWest

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

comment:2 Changed 11 years ago by dai

Status: newassigned

comment:3 Changed 11 years ago by dai

Resolution: fixed
Status: assignedclosed

[539]にて修正。

Note: See TracTickets for help on using tickets.