{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5269","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5269/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5269/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5269/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5269","id":156251899,"number":5269,"title":"C# unit test failure","user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/platform-cs","name":"platform-cs","color":"bfe5bf"},{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/regression","name":"regression","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"waneck","id":178171,"avatar_url":"https://avatars.githubusercontent.com/u/178171?v=3","gravatar_id":"","url":"https://api.github.com/users/waneck","html_url":"https://github.com/waneck","followers_url":"https://api.github.com/users/waneck/followers","following_url":"https://api.github.com/users/waneck/following{/other_user}","gists_url":"https://api.github.com/users/waneck/gists{/gist_id}","starred_url":"https://api.github.com/users/waneck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waneck/subscriptions","organizations_url":"https://api.github.com/users/waneck/orgs","repos_url":"https://api.github.com/users/waneck/repos","events_url":"https://api.github.com/users/waneck/events{/privacy}","received_events_url":"https://api.github.com/users/waneck/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/5","html_url":"https://github.com/HaxeFoundation/haxe/milestones/3.3.0-rc1","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/5/labels","id":586975,"number":5,"title":"3.3.0-rc1","description":"","creator":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":298,"state":"open","created_at":"2014-03-04T14:22:27Z","updated_at":"2016-05-23T12:20:13Z","due_on":"2016-05-07T22:00:00Z","closed_at":null},"comments":2,"created_at":"2016-05-23T10:46:13Z","updated_at":"2016-05-23T13:06:32Z","closed_at":null,"body":"Something I did today apparently caused the following:\r\n\r\n```\r\nCommand: haxe [compile-cs-travis.hxml,-D,erase_generics,-D,fast_cast]\r\nhaxelib run hxcs hxcs_build.txt --haxe-version 3300 --feature-level 1\r\n/home/travis/build/HaxeFoundation/haxe/tests/unit/src/unit/TestCSharp.hx(314,81): error CS0030: Cannot convert type `null' to `haxe.test.TEnumWithFlag'\r\n/home/travis/build/HaxeFoundation/haxe/tests/unit/src/unit/TestCSharp.hx(337,87): error CS0030: Cannot convert type `null' to `haxe.test.TEnumWithBigFlag'\r\nCompilation failed: 2 error(s), 0 warnings\r\nCompilation error\r\nNative compilation failed\r\n```"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/220974724","html_url":"https://github.com/HaxeFoundation/haxe/issues/5269#issuecomment-220974724","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5269","id":220974724,"user":{"login":"nadako","id":49749,"avatar_url":"https://avatars.githubusercontent.com/u/49749?v=3","gravatar_id":"","url":"https://api.github.com/users/nadako","html_url":"https://github.com/nadako","followers_url":"https://api.github.com/users/nadako/followers","following_url":"https://api.github.com/users/nadako/following{/other_user}","gists_url":"https://api.github.com/users/nadako/gists{/gist_id}","starred_url":"https://api.github.com/users/nadako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadako/subscriptions","organizations_url":"https://api.github.com/users/nadako/orgs","repos_url":"https://api.github.com/users/nadako/repos","events_url":"https://api.github.com/users/nadako/events{/privacy}","received_events_url":"https://api.github.com/users/nadako/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T13:06:32Z","updated_at":"2016-05-23T13:06:32Z","body":"Minimal example:\r\n```haxe\r\nabstract Flags<T>(T) {\r\n    public inline function new(?initial:T) {\r\n\t\tthis = initial;\r\n    }\r\n}\r\n\r\n@:nativeGen\r\nenum E {\r\n    A;B;C;\r\n}\r\n\r\nclass Main {\r\n    static function main() {\r\n        var f = new Flags<E>();\r\n        trace(f);\r\n    }\r\n}\r\n```\r\n\r\nC# with `-D erase-generics`\r\n```cs\r\nglobal::E this1 = ((global::E) (null) );\r\n```\r\n\r\nWithout `-D erase-generics` it generates this:\r\n```cs\r\nglobal::E this1 = (default(global::haxe.lang.Null<global::E>)).@value;\r\n```"}}
{"actor":{"display_login":"nadako"}}