the source is this ``` class Lamp { ...
# scripting
d
the source is this
Copy code
class Lamp {
                            
                                // property (data member)
                                private var isOn: Boolean = false
                            
                                // member function
                                fun turnOn() {
                                    isOn = true
                                }
                            
                                // member function
                                fun turnOff() {
                                    isOn = false
                                }
                            
                                fun displayLightStatus(lamp: String) {
                                    if (isOn == true)
                                        println("\$lamp lamp is on.")
                                    else
                                        println("\$lamp lamp is off.")
                                }
                            }
                            
                            fun main(args: Array<String>) {
                            
                                val l1 = Lamp() // create l1 object of Lamp class
                                val l2 = Lamp() // create l2 object of Lamp class
                            
                                l1.turnOn()
                                l2.turnOff()
                            
                                l1.displayLightStatus("l1")
                                l2.displayLightStatus("l2")
                            }
e
There is not enough info to actually assist you. How are you setting up the script compiler? what dependencies do you have? etc Can you post the source of an example that can reproduce it explaining the behavior youre seeing vs what you expect