Skip to content

Instantly share code, notes, and snippets.

@gsimard
Created March 17, 2012 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsimard/2054112 to your computer and use it in GitHub Desktop.
Save gsimard/2054112 to your computer and use it in GitHub Desktop.
Int(32) required: Array[Int]
class Cube(val size: Float = 1.0f, var pos: Vector3 = Vector3(0f, 0f, 0f), val texture: Array[Int] = Array(32,32,32,32,32,32)) {
def this(size: Float, pos: Vector3, texture: Int = 32) = this(size,pos,Array(texture,texture,texture,texture,texture,texture))
}
Description Resource Path Location Type
type mismatch; found : Int(32) required: Array[Int] Error occurred in an application involving default arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment