Opened 13 years ago

Last modified 13 years ago

#211 new バグ

メンバ関数名とプロパティ名が同一のときに起こる不具合

Reported by: OverTaker Owned by: dai
Priority: 中-major Milestone: AB5 CP6
Component: Compiler Version:
Keywords: Cc:

Description

メンバ関数名とプロパティ名を同一にしてgetterだけ宣言していると、メンバ変数に値が代入できなくなる。

#console

Dim c = New ClassA(20)
System.Console.WriteLine(c.Value)
System.Console.ReadLine()

Class ClassA
	Value As Long
Public
	Sub ClassA(v As Long)
		Value = v
	End Sub

	Function Value() As Long
		Return Value
	End Function
End Class

Change History (1)

comment:1 Changed 13 years ago by OverTaker

Milestone: ablib_α1AB5 CP6
Note: See TracTickets for help on using tickets.