gamnit: make `SpriteSet` public so clients can use its services
[nit.git] / tests / base_prot.nit
index f7eba89..95d1065 100644 (file)
@@ -1,7 +1,5 @@
 # This file is part of NIT ( http://www.nitlanguage.org ).
 #
-# Copyright 2008 Jean Privat <jean@pryen.org>
-#
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at
 
 import kernel
 
-class A
-       meth pub do 0.output
-       protected meth pro do 1.output
-       private meth pri do 2.output
+import base_prot0
+
+redef class A
+       fun pub do 0.output
+       protected fun pro do 1.output
+       private fun pri do 2.output
        init do end
 end
 
 class O1
-       meth o
+       fun o
        do
                var a = new A
                a.pub
                a.pro
                a.pri
+               3.output
        end
        init do end
 end