Re: strangely silent compiler

2019-08-21 Thread Orfeo via Digitalmars-d-learn
On Wednesday, 21 August 2019 at 13:56:51 UTC, Eugene Wissner wrote: On Wednesday, 21 August 2019 at 13:41:20 UTC, Orfeo wrote: I've: ``` module anomalo.util; // Foo doesn't exist anywhere! Foo toJsJson(string type, Args...)(string id, Args args) { static if (type == "int" || type == "o

Re: strangely silent compiler

2019-08-21 Thread Eugene Wissner via Digitalmars-d-learn
On Wednesday, 21 August 2019 at 13:41:20 UTC, Orfeo wrote: I've: ``` module anomalo.util; // Foo doesn't exist anywhere! Foo toJsJson(string type, Args...)(string id, Args args) { static if (type == "int" || type == "outcome") { return Json(["id" : Json(id), "type" : Json(type),

strangely silent compiler

2019-08-21 Thread Orfeo via Digitalmars-d-learn
I've: ``` module anomalo.util; // Foo doesn't exist anywhere! Foo toJsJson(string type, Args...)(string id, Args args) { static if (type == "int" || type == "outcome") { return Json(["id" : Json(id), "type" : Json(type), "value" : Json(0),]); } else { static assert(0, "i