template getParameters( T, alias P ) { static if ( is( T t == P!U, U... ) ) { alias U getParameters; } else { static assert( false ); } } void main( ) { alias getParameters!( Tuple!(int, string), Tuple ) args; } This asserts. Replace T t == P!U, U... with T t == Tuple!U, U..., and it works. (but of course then the intended functionality does not work)
https://github.com/D-Programming-Language/dmd/pull/948
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f61519bdae25f78fbeb355a8b732c8a54bb5cef0 fix Issue 8094 - Static if matching using alias parameter in template fails https://github.com/D-Programming-Language/dmd/commit/23bb1acdadaaa5b711974c5a144829b510d6f655 Merge pull request #948 from 9rnsr/fix8094 Issue 8094 - Static if matching using alias parameter in template fails
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル