1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed atom deletion issue

This commit is contained in:
Brian Fiete 2020-12-25 05:22:02 -08:00
parent 2130b7d60c
commit 27a586df04
9 changed files with 133 additions and 18 deletions

View file

@ -0,0 +1,5 @@
FileVersion = 1
[Project]
Name = "Bug"
StartupObject = "Bug.Program"

View file

@ -0,0 +1,6 @@
FileVersion = 1
Projects = {Bug = {Path = "."}}
[Workspace]
StartupProject = "Bug"

View file

@ -0,0 +1,25 @@
# This tests that types that fail generic tests don't create types referenced in methods
# and also that they get deleted immediately when they are dereferenced.
ShowFile("src/Program.bf")
GotoText("//Test_Y")
AdjustCursor(16, 1)
InsertText(" abc")
Sleep(500)
InsertText(", in")
Sleep(500)
InsertText("t def")
Compile()
DeleteTextBackward(5)
Sleep(500)
DeleteTextBackward(4)
Sleep(500)
DeleteTextBackward(4)
Sleep(500)
ToggleCommentAt("Test_Definition")
Sleep(500)
Compile()

View file

@ -0,0 +1,25 @@
#pragma warning disable 168
using System;
using System.Collections;
namespace Bug
{
class Program
{
//*Test_Definition
public class Test<T, K> where K: enum
{
typealias x = function void (T t);
//Test_Y
typealias y = (K);
}
/*@*/
public static int Main(String[] args)
{
return 0;
}
}
}