#!/usr/bin/env ferite

uses "console";

namespace foo
{

    class bar
    {
       public static number i;

       function constructor( string hello )
       {
           Console.println( "$hello" );
       }

       static function test()
       {
           Console.println( "foo::test()" );
       }
    }

}

object bah = new foo.bar("foo");
foo.bar.test();
foo.bar.i = 2;

iferr {
  bah.i = 3;
} fix {
  Console.println( "bah.i = 3; Failed, This was expected" );
}
              
