Opened 17 years ago
Closed 17 years ago
#131 closed バグ(ケアレスミス) (fixed)
Superが機能しなくなっている
Reported by: | イグトランス (egtra) | Owned by: | dai |
---|---|---|---|
Priority: | 中-major | Milestone: | AB5 CP5 |
Component: | Compiler | Version: | |
Keywords: | Super | Cc: |
Description
Superを使っても基底クラスのではなく、派生クラス自身のメソッドが呼ばれてしまいます。再帰呼出となるため、(おそらく)スタックオーバーフローを起こすまでそれが続いてしまいます。
#console Class Base Public Sub Proc() Print "Base.Proc" End Sub End Class Class Derived Inherits Base Public Sub Proc() Print "Derived.Proc" Super.Proc() End Sub End Class Dim d = New Derived d.Proc()
Change History (2)
comment:1 by , 17 years ago
Status: | new → assigned |
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
[307]にて対応。