Opened 17 years ago

Closed 17 years ago

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

ProtectedメソッドでSuperが使用できない

Reported by: イグトランス (egtra) Owned by: dai
Priority: 中-major Milestone: AB5 CP5
Component: Compiler Version:
Keywords: Super Cc:

Description

次のコードのSuper.doHoge()の行で「Protectedメンバ関数 "doHoge" を呼び出すことはできません」というエラーになってしまいます。

#console

Class Base
Public
	Sub Hoge()
		doHoge()
	End Sub
Protected
	Virtual Sub doHoge()
		Print "Base.Proc"
	End Sub
End Class

Class Derived
	Inherits Base
Protected
	Override Sub doHoge()
		Print "Derived.Proc"
		Super.doHoge()
	End Sub
End Class

Dim d = New Derived
d.Hoge()

Sleep(-1)

Change History (1)

comment:1 by dai, 17 years ago

Resolution: fixed
Status: newclosed

[315]にて修正。

Note: See TracTickets for help on using tickets.