[Issue 9712] IFTI does not support deducing static array types from array literal arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 13 15:23:10 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9712


timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|IFTI does not support       |IFTI does not support
                   |deducing static array       |deducing static array types
                   |element types from array    |from array literal
                   |literal arguments           |arguments


--- Comment #1 from timon.gehr at gmx.ch 2013-03-13 15:23:10 PDT ---
Second test case:

auto deduceLength(T,size_t n)(T[n] a){ return a; }
static assert(is(typeof(deduceLength([1,2,3]))==int[3]));

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list