Created
March 17, 2012 01:17
-
-
Save gsimard/2054112 to your computer and use it in GitHub Desktop.
Int(32) required: Array[Int]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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