Opened 16 years ago

#163 new バグ(ケアレスミス)

基本型とEnumの真偽が判定できないことがある

Reported by: OverTaker Owned by: dai
Priority: 中-major Milestone: ablib_α1
Component: Compiler Version:
Keywords: Cc:

Description

左側に基本型、右側にタイプセーフなEnumを置いた場合のみ、真偽が判定されない。

#console

Enum E
	x = 1
End Enum

Dim x = 1 As Long

If x = E.x Then 'おかしいところ
	Print "true"
Else
	Print "false"
End If

If E.x = x Then '正常
	Print "true"
Else
	Print "false"
End If

Console.ReadLine()

Change History (0)

Note: See TracTickets for help on using tickets.