Skip to content

Hotloading throws when upgrading between types that can't be implicitly cast  #30

@MuffinTastic

Description

@MuffinTastic

Reproduction

  1. Put this in Game.cs
public class Game : BaseGame
{
	// ...

	class Kaboom
	{
		public string Stuff;
	}

	private int _testField;

	public override void Startup()
	{
		// ...

		_testField = 123;

		// ...
	}

	// ...
}
  1. Start Mocha, wait for the game to start
  2. Change
private int _testField;

to

private Kaboom _testField;

and remove the _testField = 123; line from Startup() so that it will compile
4. Save Game.cs to trigger a hotload
5. Kaboom
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions