【消しゴム】MONOを使ってみるスレ3【じゃない】at TECH【消しゴム】MONOを使ってみるスレ3【じゃない】 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト150:デフォルトの名無しさん 10/03/25 04:48:24 144じゃないけどtrunkのgmcsで試してみたら確かにエラーになった。 // a.cs partial class A<T> { partial class B<T>{} } // b.cs partial class A<T> { partial class B<T>{} } $ gmcs -t:library a.cs b.cs a.cs(3,15): warning CS0693: Type parameter `T' has the same name as the type parameter from outer type `A<T>' a.cs(1,15): (Location of the symbol related to previous warning) b.cs(3,19): error CS0589: Internal compiler error during parsing Compilation failed: 1 error(s), 1 warnings 151:デフォルトの名無しさん 10/03/25 04:52:15 型パラメータ名の重複のほうでエラーが出てるのか もう一度規格見てみよう 152:151 10/03/25 04:53:30 >>150 ありがとう こっちでも確かめてみる 153:デフォルトの名無しさん 10/03/27 06:23:22 ふと思ったんだけど、コンパイラのバグかあるのはそれとして、 吐かれたwarning見たら>>144のコードもおかしい気がする。 class A<T> { class B<T> { T x; } } と class A<T> { class B { T x; } } のxはどっちもTになるからBをB<T>にする意図がよくわからない。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch