benjiiiiii <benjiii...@gmail.com> writes:

> Hi, i'm pretty new to clojure.
> To help me to progress i'm trying to solve the kata available on
> codingkata.org
> I'm doing the ovie-tickets kata.
> As you can se on the site, to complete this kata we need to acces to a
> enum wich is a nested class.
>
> My problem is that i'can't acces to this class. I miss something but i
> dont know what.
>
> I've tryied to import  the inner class this way:
>
> (ns org.codingkata.unit.MyKata
>   (:import (org.codingkata.unit.api.BaseKataSolution)
>          (org.codingkata.unit.api.BaseKataSolution$Day))
>   (:gen-class
>    :extends org.codingkata.unit.api.BaseKataSolution))
>
> This compile, but then i can't acces to Day neither BasKataSolution
> $Day.

Strange. After (:import org.codingkata.unit.api.BaseKataSolution$Day)
you should be able to use BaseKataSolution$Day.

Maybe try the fully-qualified name (yes, it's ugly) rather than using
the import:

  org.codingkata.unit.api.BaseKataSolution$Day/MON

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to