Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Object constructor regression in JS backend #10005
import jsconsole type Player* = ref object of RootObj id*: string nickname*: string color*: string proc newPlayer*(nickname: string, color: string): Player = return Player( id: "foo", nickname: nickname, color: color, ) console.log(newPlayer("foo", "#1232").nickname)
Complains that newPlayer(...) is null on devel. This works with 0.19.0.