Tier two begins: shared code in a second file of the same module

The complete source of packaging_nopackage_traits.ek9, compiled by the EK9 compiler. Shown on packaging.html.

#!ek9
defines module site.packaging.nopackage

  defines record
    BaseRecord as open
      anything as Integer: 90

      default operator ?

  defines trait
    Quack
      quack() as pure
        <- rtn as String?

  defines class
    Duck with trait of Quack
      override quack() as pure
        <- rtn as String: "Quack"

Download packaging_nopackage_traits.ek9