Skip to content

Instantly share code, notes, and snippets.

@othiym23
Forked from hjast/Experiment.scala
Created June 26, 2011 06:44
Show Gist options
  • Save othiym23/1047328 to your computer and use it in GitHub Desktop.
Save othiym23/1047328 to your computer and use it in GitHub Desktop.
Test.scala
package com.sportaneous.snippet
import java.util.Calendar
import java.text.SimpleDateFormat
import net.liftweb.http.js.JsCmds.ReplaceOptions._
import com.sportaneous.snippet.SelectValue._
import net.liftweb.http.js.{JE, JsCmd}
import net.liftweb.http.js.JsCmds.After._
import xml.{Null, PrefixedAttribute, NodeSeq}
import net.liftweb.http.{StatefulSnippet, SHtml, S}
import com.sportaneous.api.client.SportaneousAPIClient
import com.sportaneous.snippet.Adaptor._
import com.sportaneous.api.client.v1._
import net.liftweb.util.Helpers
import Helpers._
import net.liftweb.http.js.JsCmds._
import net.liftweb.common.Full._
import net.liftweb.common.Full
import scala.Predef._
import com.sportaneous.model.{RecurringGame, DayOfWeek}
import scala.collection.JavaConversions._
import _root_.java.text.SimpleDateFormat
import _root_.java.util.Calendar
import _root_.scala.xml._
import _root_.net.liftweb.common._
import _root_.net.liftweb.http._
import _root_.net.liftweb.http.js.JE
import _root_.net.liftweb.http.js.JsCmd
import _root_.net.liftweb.http.js.JsCmds._
import _root_.com.sportaneous.api.client._
import _root_.com.sportaneous.api.client.v1._
import S._
import collection.JavaConversions._
import _root_.org.apache.commons.lang.StringUtils._
trait Quux {
type Game
def getGame: Game
}
trait Foo extends Quux {
// type Game = { def getPlayLevel: PlayLevel; def getSport:Sport; def getFacility: API_Facility; def getMinPlayerCount: java.lang.Integer; def getMaxPlayerCount: java.lang.Integer; def getNotes:String}
// type Game = { def getPlayLevel(): com.sportaneous.api.client.v1.PlayLevel}//def getSport:Sport; def getFacility: API_Facility; def getMinPlayerCount: java.lang.Integer; def getMaxPlayerCount: java.lang.Integer; def getNotes:String}
type Game = { def getNotes: java.lang.String }
}
trait Bar extends Quux {
type Game = API_Game
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment