Pascal case not accepted for binding data variable name in kotlin in android studio

here’s my data

          type="com.example.practice.MyName" />

here’s the MainActivity

class MainActivity : AppCompatActivity() {
    lateinit var binding: ActivityMainBinding
    private val name:MyName = MyName("hello")
    override fun onCreate(savedInstanceState: Bundle?) {
        binding = DataBindingUtil.setContentView(this,R.layout.activity_main)
        binding.Name = name
        binding.button.setOnClickListener { change(it) }

I get error "Unresolved reference: Name"at binding.Name = name

It works perfectly fine when I set name to any name of Camel case i.e.,starting with small letter, but it doesn’t work for the name starting with capital letters.
Why ?

Go to Source
Author: preIdiot