// retoor <retoor@molodetz.nl>
import "udp" for UdpSocket
var socket = UdpSocket.new()
socket.bind("127.0.0.1", 0)
System.print(socket.localAddress) // expect: 127.0.0.1
System.print(socket.localPort > 0) // expect: true
socket.close()