Skip to content

Polymorphism

Given a file named “pen.json” with:

{
"type": "library",
"dependencies": {}
}

Given a file named “Foo.pen” with:

f = \(x number | none) boolean {
x == none
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \(x number | none) boolean {
x != none
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \(x number | none, y number | none) boolean {
x == y
}

When I run pen build

Then the exit status should be 0.

Given a file named “Foo.pen” with:

f = \(x number | none) boolean {
x == none
}

When I run pen build

Then the exit status should be 0.