Reproduction Steps
- Create any Luau script/localscript.
- Paste the following code snippet:
type R6Character = Model & {
Humanoid: Humanoid,
Head: Part & {
Face: Decal
},
}
local function Test(char: R6Character)
print(
char.Head.Face,
char.Head["Face"]
)
end
- Look in the Script Analysis window or check for underlined parts.
Expected Behavior
Both print arguments should not cause the Luau typechecker to throw an error.
Actual Behavior
Luau typechecker throws an error.
Issue Area: Studio (Built-In Script Editor)
Issue Type: Luau typechecker / Script Analysis
Impact: Low
Frequency: Always
Date First Experienced: 2022-08-06 4:06 PM (GMT-5)
Operating System: Windows 11 Pro
Roblox Studio: Version 0.538.0.5380364 (64bit)