Opened 16 years ago

Closed 16 years ago

#84 closed バグ(ケアレスミス) (fixed)

配列の先頭ポインタをコンストラクタのパラメータに指定すると、オーバーロードが正常に解決されない

Reported by: dai Owned by: dai
Priority: 高-critical Milestone: AB5 CP4
Component: Compiler Version:
Keywords: Cc:

Description

Class CTest
Public
	Sub CTest()
	End Sub
	Sub CTest(s As *Byte)
		debug
	End Sub
	Sub CTest(s As PCSTR)
		debug
	End Sub
	Sub CTest(s As PCWSTR)
		debug
	End Sub
	Sub CTest(ByRef s As String)
		debug
	End Sub
	Sub CTest(s As Long)
		debug
	End Sub
End Class

Dim a[10] As Char
Dim b As CTest
b=New CTest(a)

このようなコードがあるとき、"CTest(s As Long)" が実行されてしまう。

Change History (1)

comment:1 Changed 16 years ago by dai

Resolution: fixed
Status: newclosed

コード修正が完了。β16で対応する。

Note: See TracTickets for help on using tickets.