Skip to content

Instantly share code, notes, and snippets.

View j3k0's full-sized avatar

Jean-Christophe Hoelt j3k0

View GitHub Profile
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://ns.adobe.com/air/application/18.0" minimumPatchLevel="0">
<id>nl.goliathgames.triominos</id>
<name>
<text xml:lang="en">Triominos</text>
</name>
<versionNumber>1.4.49</versionNumber>
<versionLabel>v1.4.49</versionLabel>
<filename>Triominos</filename>
<description>
#globals emit
teiAligner = require "./tei/aligner"
exportObject = (name, obj, funcNames) ->
"var #{name} = {\n" +
("\"#{f}\":" + obj[f] for f in funcNames).join(",\n") +
"\n};\n"
module.exports = [
typedef A = { a:Int };
typedef B = { > A, b:Int };
class TypedefTest {
public static function f(x:A):A
return x.a == 0 ? x : null;
static function main() {
var b:B = { a:1, b:2 };
input {
tcp {
port => 55555
type => syslog
}
udp {
port => 55555
type => syslog
}
}