Initial analysis and plan for Arc sharing fix
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
17
test_arc_fix.nyash
Normal file
17
test_arc_fix.nyash
Normal file
@ -0,0 +1,17 @@
|
||||
static box Main {
|
||||
init { server }
|
||||
|
||||
main() {
|
||||
me.server = new SocketBox()
|
||||
|
||||
print("=== Before bind ===")
|
||||
print("isServer: " + me.server.isServer())
|
||||
|
||||
me.server.bind("127.0.0.1", 8080)
|
||||
|
||||
print("=== After bind ===")
|
||||
print("isServer: " + me.server.isServer()) // This should be true if fix works!
|
||||
|
||||
return me.server.isServer()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user