Certain table type crashes studio upon defining duplicate key

  • AMD Ryzen 5 5500 @ 3.6 GHz, 16 GB, AMD Radeon RX 6500 XT

When creating a table with a specific type, defining a duplicate key crashes studio, and reentering the place sometimes crashes studio, and editing the table can result in the same crash.

Example:

local ExampleTable: {[string] : {Track : AnimationTrack, Connections : {RBXScriptConnection}}} = { -- The type
	Key = "hi" -- Works fine, no issues
	Key = -- Crashes studio
}

Reproduction steps:

  1. Make a table with the following type
local ExampleTable: {[string] : {Track : AnimationTrack, Connections : {RBXScriptConnection}}} = {}
  1. Define a key
local ExampleTable: {[string] : {Track : AnimationTrack, Connections : {RBXScriptConnection}}} = {
	key = "hey",
}
  1. Define the same key again
local ExampleTable: {[string] : {Track : AnimationTrack, Connections : {RBXScriptConnection}}} = {
	key = "hey",
	key = "yo"
}

Beta Features:

  • Assistant Preview
  • Avatar Joint Upgrade
  • Dragger QoL Improvments
  • Gamepad Emulator
  • Import Queue
  • Improved Constraint Tool
  • Improved Mass Properties
  • Live Animation Creator
  • Multilayer Wrap Fix
  • New Luau type solver
  • Occlusion Culling
  • Preferred Text Size Setting
  • Script Sync [Early Preview]
  • Studio solid modeling improvements
  • Texture Generator
  • UIDragDetectors
  • Updated Roblox Controls
  • Video Uploads
  • VR Emulator

Video demonstration:

Expected behavior

I expect the duplicate key to be underlined in red with an error message saying that there is a duplicate key

A private message is associated with this bug report

Thanks for the report! We’ll follow up when we have an update for you.