エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Trait and use of super | The Scala Programming Language
On Wed, Oct 13, 2010 at 11:06:49AM -0700, Erik Bruchez wrote: > scala> trait Bar { > | this: Foo ... On Wed, Oct 13, 2010 at 11:06:49AM -0700, Erik Bruchez wrote: > scala> trait Bar { > | this: Foo => > | > | override def doStuff() { > | super.doStuff() > | } > | } > :10: error: value doStuff is not a member of java.lang.Object > with ScalaObject > super.doStuff() > ^ > > Since my trait Bar is guaranteed to augment a Foo which defines > doStuff(), I thought I would be able to access super.doStuff



2011/02/23 リンク