Add test cases for nested record field access

Connects #81
pull/844/head
Michael Davis 2024-01-20 09:13:50 +07:00
parent 62c5388a7b
commit 58b7cac8fc
No known key found for this signature in database
2 changed files with 21 additions and 0 deletions

@ -145,3 +145,18 @@ panic as { "Hello, " <> "world!" }
(quoted_content))
(string
(quoted_content))))))
================================================================================
Nested field access
================================================================================
config.connection.host
--------------------------------------------------------------------------------
(source_file
(field_access
(field_access
(identifier)
(label))
(label)))

@ -12,3 +12,9 @@ pub fn new(name: String) {
// ^ property
// ^ variable.parameter
}
let config = Config()
config.connection.host
// ^ variable
// ^ property
// ^ property